const assert = require('assert');
const { parseBuildResult, moduleReg } = require('../../../scripts/test-utils');
const { files } = parseBuildResult(__dirname);

const names = Object.keys(files).join(',');
const content = files['app.js'];

assert(content.includes(`if (Math.random()) {`), 'if should has block statement');
